package rmaqlc31.basic;

public class J03_Expression04 {

	public static void main(String[] args) {

		int n = 1;
		int k = 2;
		int r = n;
		if (k < n)
			r = k;
		System.out.println(n);
		System.out.println(k);
		System.out.println(r);

		int n1 = 1;
		int k1 = 2;
		int r1;
		if (n1 < k1)
			r1 = k1;
		else
			r1 = k1 + n1;
		System.out.println(n1);
		System.out.println(k1);
		System.out.println(r1);

		int n2 = 1;
		int k2 = 2;
		int r2 = k;
		if (r2 < k2)
			n2 = r2;
		else
			k2 = n2;
		System.out.println(n2);
		System.out.println(k2);
		System.out.println(r2);

		int n3 = 1;
		int k3 = 2;
		int r3 = 3;
		if (r3 < n3 + k3)
			r3 = 2 * n3;
		else
			k3 = 2 * r3;
		System.out.println(n3);
		System.out.println(k3);
		System.out.println(r3);

	}

}
